package com.luokangtao.user.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;

/**
 * @author luokangtao
 * @create 2019-07-23 18:06
 */
@Data
@Accessors(chain = true)
@ApiModel("Login登陆")
public class LoginCondition {
    /**
     * 用户登陆名
     */
    @NotEmpty(message = "登陆名不能为空")
    @TableField(value = "loginname")
    @ApiModelProperty(value="用户登陆名",example = "lkt13713676163",required = true)
    private String loginname;

    /**
     * 用户密码
     */
    @NotEmpty(message = "用户密码不能为空")
    @TableField(value = "password")
    @ApiModelProperty(value="用户密码",example = "123456",required = true)
    private String password;
}
